package com.company.design.create.builder;

/**
 * @author yingfing
 * @create 2020--09--26 10:09
 * @describe
 */
public class Director {
    private Builder mBuilder = null;

    public Director(Builder builder) {
        mBuilder = builder;
    }

    public Bike buildBike() {
        mBuilder.buildFrame();
        mBuilder.buildSeat();
        mBuilder.buildTire();
        return mBuilder.createBike();
    }
}
